# jdk镜像
FROM openjdk:21-slim
# 工作目录
WORKDIR /data
# 拷贝jar
ADD target/spring-boot-event-log-demo-1.0.0.jar app.jar
# 暴露端口
EXPOSE 80
# 执行命令
CMD ["java","-jar","/data/app.jar","--spring.profiles.active=dev"]